﻿@using BootstrapBlazor.Shared.Samples;
@inject IStringLocalizer<Selects> Localizer

<div class="row g-3">
    <div class="col-12 col-sm-6">
        <Select @bind-Value="SelectedEnumItem1" PlaceHolder="@Localizer["SelectsPlaceHolder"]" ShowLabel="true" DisplayText="@Localizer["SelectsEnumSelectText1"]">
        </Select>
    </div>
    <div class="col-12 col-sm-6">
        <Select @bind-Value="SelectedEnumItem1" ShowLabel="true" DisplayText="@Localizer["SelectsEnumSelectText1"]">
        </Select>
    </div>
    <div class="col-12 col-sm-6">
        <Select @bind-Value="SelectedEnumItem" ShowLabel="true" DisplayText="@Localizer["SelectsEnumSelectText2"]">
        </Select>
    </div>
    <div class="col-12 col-sm-6 align-self-end">
        <div class="form-control">@SelectedEnumItem</div>
    </div>
</div>

@code {
    private EnumEducation SelectedEnumItem { get; set; } = EnumEducation.Primary;

    private EnumEducation? SelectedEnumItem1 { get; set; }
}
